package org.dizem.groupon.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

import static org.dizem.groupon.Constants.SESSION_USER_TYPE;

/**
 * User: dizem@126.com
 * Time: 11-6-27 下午1:09
 */
public class UserAuthorizationInterceptor extends AbstractInterceptor {

	private String ignoreActions;

	public String getIgnoreActions() {
		return ignoreActions;
	}

	public void setIgnoreActions(String ignoreActions) {
		this.ignoreActions = ignoreActions;
	}

	@Override
	public String intercept(ActionInvocation actionInvocation) throws Exception {
		actionInvocation.getInvocationContext().getSession().get(SESSION_USER_TYPE);

		return null;
	}
}
